using System.Collections;
using System.Collections.Generic;
using Unity.VisualScripting;
using UnityEngine;

public class EnemyTree : Tree
{
    //
    [SerializeField] private EnemyControl enemyControl;
    
    //
    protected override Node SetupTree()
    {
        Node root = new Selector(new List<Node>
        {
            new EnemyTaskSpawn(enemyControl),
            new EnemyTaskHit(enemyControl),
            new EnemyTaskWander(enemyControl)
        });


        return root;
    }
    
    // 行为树构建形状
    //                - 生成(执行初始化操作)
    // 根节点(选择节点){ - 受伤 -> 死亡
    //                - 巡逻
}
